package com.cloudnews;

import java.io.Serializable;

import javax.enterprise.context.RequestScoped;
import javax.enterprise.context.SessionScoped;
import javax.inject.Named;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.metamodel.StaticMetamodel;

@Named
@RequestScoped
public class ReporterAccountHome implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private ReporterAccount account = new ReporterAccount();
	
	@PersistenceContext
	private EntityManager em;
	
	public void saveAccount(){
		System.out.println("user name "+account.getUsername());
		em.persist(account);
	}
	public String helloWorld(){
		return "hello world";
	}
	public ReporterAccount getAccount() {
		return account;
	}
	public void setAccount(ReporterAccount account) {
		this.account = account;
	}
	
	
}
